package com.wesh.home.interceptors;

import feign.RequestInterceptor;
import feign.RequestTemplate;

import java.util.UUID;

public class FeignUserInfoRequestInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate template) {
        String access_token = UUID.randomUUID().toString();
        template.header("Authorization",access_token);
    }
}
